/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.moravian.math;

import java.util.Random;

/**
 *
 * @author Elliot
 */
public class Rand 
{
    private static Random rand = new Random();
    
    public static int inRange(int low,  int high)
    {
        return rand.nextInt() * (high - low) + low;
    }
    
    public static double inRange(double low, double high)
    {
        return rand.nextDouble() * (high - low) + low;
    }
    
    
}
